a = int(input())

if a > 0:
    print("正数")
elif a < 0:
    print("负数")
else:
    print("0")


#闰年
# 100 and 400
# 4

year = int(input())

if (year % 400 != 0 and year % 4 == 0) or year % 400 == 0:
    print("闰年")
else:
    print("平年")
